package com.whp.openapi.dao;

import com.whp.openapi.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKeyWithBLOBs(Customer record);

    int updateByPrimaryKey(Customer record);

    List<Customer> table(@Param("name") String name,@Param("state") Integer state);

    int delCustomer(Integer[] ids);

    List<Customer> getAllCustomer();
}